/*
 *
 */
package org.jiscinvolve.astrodabis.barberry.common.core;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

/**
 *
 */
public abstract class AbstractIdent
implements Identifier
    {
    /**
     * Our debug logger.
     * 
     */
    private static Log log = LogFactory.getLog(AbstractIdent.class);

    @Override
    public boolean equals(Object that)
        {
        if (that != null)
            {
            if (this == that)
                {
                return true ;
                }                            
            if (that instanceof Identifier)
                {
                return this.value().equals(
                    ((Identifier)that).value()
                    );
                }
            }
        return false ;
        }

    @Override
    public String toString()
        {
        return this.value().toString();
        }

    }

